package com.firmboy.compo.scan.user.service;

import com.firmboy.compo.scan.user.dao.SsmUserMapper;
import com.firmboy.compo.scan.user.model.SsmUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 测试DataSource
 *
 * @author firmboy
 * @create 2018-02-07 下午2:31
 **/
@Service
@Transactional
public class UserService {

    @Autowired
    private SsmUserMapper userDao;

    public List<SsmUser> getAll(){
        return userDao.selectAll();
    }
}
